package com.lbt.framework.exception;

public class MyException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3763645441608965208L;
	
	protected Object data;

	protected int code = -1;
	
	public MyException() {
        super("非法操作");
    }

    public MyException(String s) {
        super(s);
    }

    public MyException(int code, String s) {
        super(s);
        this.code = code;
    }

    public MyException(String message, Throwable cause) {
        super(message, cause);
    }

    public MyException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public MyException(Throwable cause) {
        super(cause);
    }

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
}
